package cn.iocoder.boot.springai001.tools.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 生成SQL请求 VO
 *
 * @author Agent System
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "生成SQL请求")
public class GenerateSqlReqVO {

    @Schema(description = "用户问题", requiredMode = Schema.RequiredMode.REQUIRED, example = "查询2025年1月的销售总额")
    @NotBlank(message = "用户问题不能为空")
    private String query;

    @Schema(description = "相关表列表", requiredMode = Schema.RequiredMode.REQUIRED, example = "[\"sales\", \"products\"]")
    @NotEmpty(message = "表列表不能为空")
    private List<String> tables;

}

